package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "MESSAGE_STRATEGY")
@SequenceGenerator (name="AUTO_ID", sequenceName="AUTO_ID")
public class MessageStrategy implements java.io.Serializable{

	private static final long serialVersionUID = 1410128822318852802L;

	private Long id;
	
	private Integer alarmLevel;
	
	private Long alarmTypeId;
	
	private Integer alarmTimes;
	
	private Integer sendType;
	
	private Integer resendTimes;
	
	private Integer resendInterval;

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue (strategy=GenerationType.SEQUENCE, generator="AUTO_ID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "ALARM_LEVEL")
	public Integer getAlarmLevel() {
		return alarmLevel;
	}

	public void setAlarmLevel(Integer alarmLevel) {
		this.alarmLevel = alarmLevel;
	}

	@Column(name = "ALARM_TYPE_ID")
	public Long getAlarmTypeId() {
		return alarmTypeId;
	}

	public void setAlarmTypeId(Long alarmTypeId) {
		this.alarmTypeId = alarmTypeId;
	}

	@Column(name = "ALARM_TIMES")
	public Integer getAlarmTimes() {
		return alarmTimes;
	}

	public void setAlarmTimes(Integer alarmTimes) {
		this.alarmTimes = alarmTimes;
	}

	@Column(name = "RESEND_TIMES")
	public Integer getResendTimes() {
		return resendTimes;
	}

	public void setResendTimes(Integer resendTimes) {
		this.resendTimes = resendTimes;
	}

	@Column(name = "RESEND_INTERVAL")
	public Integer getResendInterval() {
		return resendInterval;
	}

	public void setResendInterval(Integer resendInterval) {
		this.resendInterval = resendInterval;
	}

	@Column(name = "SEND_TYPE")
	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}
}
